// C11:ThreadExecutor.cpp
//  {L} ZThread
#include "LiftOff.h"
#include "zthread/ThreadedExecutor.h"
#include <iostream>

using namespace ZThread;
using namespace std;

int main(void) {
  try {
    ThreadedExecutor executor;
    for (int i = 0; i < 5; i++) {
      executor.execute(new LiftOff(10, i));
    }
  } catch (Synchronization_Exception &e) {
    cerr << e.what() << endl;
  }
}